﻿<%@ Page Title="提现记录" Language="C#" MasterPageFile="~/member/mMenber.master" AutoEventWireup="true" CodeBehind="WithDrawRecord.aspx.cs" Inherits="map.member.money.WithDrawRecord" %>
<%@ Register Assembly="RuleCode.Common" Namespace="RuleCode.Controls" TagPrefix="cc2" %>

<%@ Register Assembly="AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"
    Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head2" runat="server">
    <link href="../../outstyle.css" rel="stylesheet" type="text/css" />
    <script src="../../js/dropdowncontent.js" type="text/javascript"></script>
    <style type="text/css" >
        .MainContentDiv
        {
        	width:90%;
        	padding-left:10px;
        }
         .CateNavDiv
        {
            margin-top:30px;
            width:100%;
            height:23px;  
            border-bottom:solid 1px lightGray;
        }
        .CateNavDiv ul li
        {
            display:inline;
            list-style-type:none;
            background:url(/img/tagleft.gif) no-repeat left bottom;
            margin-left:10px;
            height:23px;
            float:left;  
        }
        .CateNavDiv ul li a
        {
            padding-left:10px;
            padding-right:10px;
            line-height:23px;
            height:23px;
            background:url(/img/tagright.gif) no-repeat right bottom;
            float:left;
                        
        }
        .CateNavDiv ul li.selected
        {                
            background:url(/img/tagleft.gif) no-repeat left top; 
            margin-bottom:-2px;
            height:25px;          
        }
        .CateNavDiv ul li.selected a
        {
            background:url(/img/tagright.gif) no-repeat right top;   
              line-height:25px;
              height:25px;         
        }
        .DataDiv
        {
            width:100%;
            margin-top:10px;
        }
         .td_0
        {
            width:15%;
        }
        .td_1
        {
            width:15%;
        }
        .td_2
        {
            width:15%;
        }
        .td_3
        {
            width:40%;
        }
        .td_4
        {
            width:15%;
        }
         .b_td_0
        {
            width:40%;
            text-align:right;
        }                    
        .b_td_1
        {
            width:60%;
            text-align:left;
        } 
        .f_td_0,.f_td_2
        {
            width:15%;
            text-align:right ;
        }              
        .f_td_1,.f_td_3
        {
            width:35%;
            text-align:left ;
        }
        .SubmitCharge
        {
            background:url(/img/btnTmp_orange.png) no-repeat 0px 0px;
            border:none;
            text-align:center;
            padding-left:20px;
            font-weight:bold ;
            cursor:pointer ;
            width:82px;
            height:34px;
        }     
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
    <div class="MainContentDiv">
         <h1 style=" font-size:large; margin-top:15px;">提现记录&nbsp;&nbsp;&nbsp;&nbsp;<a  href="quxian.aspx" target="_blank" style="  font-size:small ;color:Red; font-weight:normal; text-decoration:underline ">点此申请提现</a></h1>
         <hr />
         <div style=" margin:10px 15px 10px 15px;">
            <table width="100%" cellpadding="0" cellspacing="0">
                 <tr>
                    <td class="f_td_0">用户ID：</td>  
                    <td class="f_td_1" style="color:Blue ;"><%= AliApi .appUserId  %></td>
                    <td class="f_td_2">交易类型：</td>  
                    <td class="f_td_3" style="color:Blue ;">
                        <asp:DropDownList ID="WithDrawStatusDropDownList" Width="150px" runat="server">
                        </asp:DropDownList>
                    </td>
                 </tr>
                 <tr>
                    <td class="f_td_0">申请起始日期：</td>  
                    <td class="f_td_1">
                        <cc1:CalendarExtender ID="CalendarExtender2" TargetControlID="StartDateTextBox" runat="server">
                        </cc1:CalendarExtender>
                        <asp:TextBox ID="StartDateTextBox" runat="server"></asp:TextBox>
                    </td>
                    <td class="f_td_2">申请结束日期：</td>  
                    <td class="f_td_3">
                        <cc1:CalendarExtender ID="CalendarExtender1"  TargetControlID ="EndDateTextBox" runat="server">
                        </cc1:CalendarExtender>
                        <asp:TextBox ID="EndDateTextBox" runat="server"></asp:TextBox>
                    </td>
                 </tr>
                 <tr>
                    <td class="td_0">&nbsp;</td>  
                    <td class="td_1" style=" text-align:right;">
                        <asp:Button ID="SearchButton" runat="server" CssClass="SubmitCharge" Text="查询" 
                              OnClick ="SearchButton_Click" />
                    </td>
                    <td colspan="2">&nbsp;</td>
                 </tr>
            </table>
        </div>
        
         <div class="CateNavDiv">
            <ul id="CateNaveUl">
                <li class="selected"><a  id="listcate" href ="#" onclick ="navliSelected(this);">提现记录</a></li>
            </ul>
        </div>
        
        <div class="DataDiv">
            <div id="ChargeInDataDiv">
            </div>             
            <div id="WithDrawDataDiv" style=" display:block ">
                <table width="100%" style=" text-align:center; background-color:lightGray"  cellpadding="0" cellspacing="0">
                    <tr>              
                        <td class="td_0">提现流水号</td>
                        <td class="td_1">申请时间</td>
                        <td class="td_2">金额</td>
                        <td class="td_3">银行账户信息</td> 
                        <td class="td_4">状态</td>   
                    </tr>
                </table>
                <asp:DataList ID="WithDrawDataList" DataKeyField="RECID" runat="server" Width="100%">
                    <ItemTemplate>
                        <table width="100%"  onmouseover="this.bgColor='#EAF4FF';" onmouseout="this.bgColor='white';"
                            style=" margin:3px 0px 3px 0px; border-bottom:dashed 1px lightGray;" cellpadding="0" cellspacing="0">
                            <tr>                 
                                <td class="td_0" style=" text-align:center;">
                                    <span ><%#Eval("WithDrawId").ToString().Substring(0, 16) + "<br/>" + Eval("WithDrawId").ToString().Substring(16, 16)%></span>
                                </td>
                                <td class="td_1" style=" text-align:center;">
                                    <%#Convert.ToDateTime(Eval("WithDrawDate")).ToShortDateString() + "</br> " + (new RuleCode.Common.TTime(Convert.ToInt32(Eval("WithDrawTime")))).StringValue %>
                                </td>
                                <td class="td_2" style=" text-align:center;">
                                    <%# String.Format("{0:F}", Convert.ToDouble(Eval("Amount"))) + "元"%>
                                </td>
                                <td class="td_3">
                                    <table width="100%" cellpadding="0" cellspacing="0">
                                         <tr>
                                            <td class="b_td_0">开户名：</td>
                                            <td class="b_td_1"><%#Eval("BankAccountName").ToString()%></td>
                                         </tr> 
                                         <tr>
                                            <td class="b_td_0">账号：</td>
                                            <td class="b_td_1"><%# GetAccountNumber(Eval("BankAccount").ToString())%></td>
                                         </tr>
                                         <tr>
                                            <td class="b_td_0">银行名称：</td>
                                            <td class="b_td_1"><%#Eval("BankName").ToString()%></td>
                                         </tr>
                                    </table>
                                </td> 
                                <td class="td_4" style=" text-align:center;">
                                   <%#GetWithDrawStatusStr(Convert.ToInt32(Eval("WithDrawStatus")))%>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
                <cc2:WebPager ID="WithDrawWebPager" runat="server" ControlToPaginate="WithDrawDataList" OnPageIndexChanged ="WithDrawWebPager_PageIndexChanged" 
                PageSize="10" />
            </div>
        </div> 
    </div>
    
    <script type="text/javascript">
        function navliSelected(thisObj) {
            var catenaveul = document.getElementById("CateNaveUl");
            var catenavlis = catenaveul.getElementsByTagName("li");
            for (var i = 0; i < catenavlis.length; i++) {
                if (catenavlis[i] == thisObj.parentNode) {
                    catenavlis[i].className = "selected";
                    //选择项
                }
                else {
                    catenavlis[i].className = "";
                }
            }
        }
    </script>    
</asp:Content>
